#include <xpam/dsp/processing.h>

namespace xpam
{
    namespace dsp
    {
        processing::processing()
            : _source(0)
            , _render(0)
        { }

        void processing::go()
        {
            frame fr;
            if (_source)
                _source->go(fr);

            for (size_t i = 0; i < _processors.size(); i++)
                if (_processors[i])
                    _processors[i]->go(fr);

            if (_render)
                _render->go(fr);
        }
    }
}